package com.jie.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * @Author: 张玉捷
 * @Date: 2021/5/4 14:24
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Value("${server.port}")
    private int port;
    @GetMapping
    public String demo(){
        System.out.println("order demo ...");
        return "order demo OK!!!"+"当前端口:"+port;
    }


}
